package edu.hcmiu.portal.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * <a href="hook_userSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>edu.hcmiu.portal.service.http.hook_userServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.http.hook_userServiceSoap
 *
 */
public class hook_userSoap implements Serializable {
    private long _userID;
    private String _userName;
    private String _userEmail;

    public hook_userSoap() {
    }

    public static hook_userSoap toSoapModel(hook_user model) {
        hook_userSoap soapModel = new hook_userSoap();

        soapModel.setUserID(model.getUserID());
        soapModel.setUserName(model.getUserName());
        soapModel.setUserEmail(model.getUserEmail());

        return soapModel;
    }

    public static hook_userSoap[] toSoapModels(hook_user[] models) {
        hook_userSoap[] soapModels = new hook_userSoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static hook_userSoap[][] toSoapModels(hook_user[][] models) {
        hook_userSoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new hook_userSoap[models.length][models[0].length];
        } else {
            soapModels = new hook_userSoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static hook_userSoap[] toSoapModels(List<hook_user> models) {
        List<hook_userSoap> soapModels = new ArrayList<hook_userSoap>(models.size());

        for (hook_user model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new hook_userSoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _userID;
    }

    public void setPrimaryKey(long pk) {
        setUserID(pk);
    }

    public long getUserID() {
        return _userID;
    }

    public void setUserID(long userID) {
        _userID = userID;
    }

    public String getUserName() {
        return _userName;
    }

    public void setUserName(String userName) {
        _userName = userName;
    }

    public String getUserEmail() {
        return _userEmail;
    }

    public void setUserEmail(String userEmail) {
        _userEmail = userEmail;
    }
}
